In chemical reactions, elements tend to combine with other elements to____ stability and ____ total energy