X-ray electron and Auger-transition energies used to determine atomic charges, extraatomic relaxation, and Madelung energies for compounds