First-Principles DFT Calculations for Perovskite Solar Cells