SoftMorph: Differentiable probabilistic morphological operators for image analysis