Microscopic Theory of Rabi Flopping, Photon Echo, and Resonant Pulse Propagation in Semiconductors