Quantum Mechanical Approaches for Piezoelectricity Study in Perovskites