SMURF: soft-segmentation for single-cell reconstruction and topological analysis of spatial transcriptomic data