Energy metabolism, ion homeostasis, and cell damage in the brain