Techniques and applications of electron spin resonance