Self-induced transparency in a system of resonant–quasiresonant transitions