XPS spectra as a tool for studying photochemical and thermal degradation in APbX3 hybrid halide perovskites. (January 2021)