Investigation of degradation processes in perovskite under the influence of external factors