Spectral embedding and the latent geometry of multipartite networks