Electronic and optical properties of MAPbX3 perovskites (X = I, Br, Cl): a unified DFT and GW theoretical analysis.