Modulation of photon echo intensity by pulsed non-uniform magnetic fields