A neutron diffraction study of the magnetic properties of PrTiO3 and NdTiO3