Inversion of multidimensional Mellin transforms