Atomistic Simulations of MAPbI Pm-3m Using First-Principles Calculations