Deep probabilistic analysis of single-cell and spatial omics data