Application of electron spin resonance in the study of triplet states