Detuning effects in the one-photon mazer