Transformation from crystalline precursor to perovskite in PbCl2-derived MAPbI3