Formal charges to analyze nonequivalent resonance structures