Direct determination of self-consistent total energies and charge densities of solids: A study of the cohesive properties of the alkali halides | Synapse