High-temperature X-ray diffraction and specific heat studies on GdAlO3, Gd3Al5O12 and Gd4Al2O9