Isolation of atomic resonance lines by selective modulation