Self-supervised learning for SAR images: from despeckling to representation learning