The energy evolved when magnesium burns in air is in the form of