The magnetic structures of HoTiO3 and ErTiO3