Uncovering the spatial landscape of molecular interactions within the tumor microenvironment through latent spaces