Application of magnetic resonance techniques to the study of semiconductor surfaces