Thermal degradation of CH 3 NH 3 PbI 3 perovskite into NH 3 and CH 3 I gases observed by coupled thermogravimetry-mass spectrometry analysis