Characterization of protein triplet states by optical detection of magnetic resonance