Constructing the Electronic Structure of CH3NH3PbI3 and CH3NH3PbBr3 Perovskite Thin Films from Single-Crystal Band Structure Measurements.