Understanding molecular orbital wave functions in terms of resonance structures