Pressure and temperature dependence of the longitudinal proton and deuteron relaxation rates in NH3 and ND3