form of energy that is produced when electrons move from an atom to another​