Brittleness evaluation based on the energy evolution throughout the failure process of rocks