Pulsed optically detected resonance in semiconductors