Structural discontinuity in the hexagonal RTAl compounds: Experiments and density-functional theory calculations