Deterioration mechanism of perovskite solar cells by operando observation of spin states