Dynamics of Chiral Cations in Two-Dimensional CuX4 and PbX4 Perovskites (X = Cl and Br)