Theoretical modeling and simulations of perovskite ferroelectrics: From phenomenological approaches to ab initio