What type of energy comes from a compound that changes as its atoms are rearranged?