Resonance interactions in acyclic systems. 1. Energies and charge distributions in allyl anions and related compounds