Competing Structural Instabilities in the Ruddlesden-Popper Derivatives HRTiO4 (R = Rare Earths): Oxygen Octahedral Rotations Inducing Noncentrosymmetricity and Layer Sliding Retaining Centrosymmetricity