The Influence of Temperature on Phase Transition of Perovskite Materials Using the First-principles Method