Bidimensional vibrational Hamiltonian for asymmetric ammonia-like pyramidal molecules: application to the calculation of the inversion spectrum of NH2D and NHD2