Thermal and illumination effects on a PbI2 nanoplate and its transformation to CH3NH3PbI3 perovskite