Empirical Modeling of Structural Distortions in Perovskite Ceramics