Energy Evolution and Mechanical Features of Granite Subjected to Triaxial Loading-Unloading Cycles