Comparison of inelastic magnetic neutron scattering on PrBa2Cu3O7 and NdBa2Cu3O7