Energy Evolution During Failure of Gassy Coals Under Uniaxial Compression