When energy is transformed or changed from one form into another, some of the energy will be lost to the environment as?