Multivariate approach for studying the degradation of perovskite solar cells