how is chemical energy related to chemical change