Radiative recombination and photoconversion of methylammonium lead iodide perovskite by first principles: properties of an inorganic semiconductor within a hybrid body