Crystal structure of GdFeO3-type rare earth gallates and aluminates