Resonance condition in strictly two-level system