Theory of vibrational relaxation in the inverting molecules, NH3 and ND3