Structural and magnetic phase transitions in TbPO4 studied by neutron diffraction