Analysis of energy released by elastic emission in brittle materials under compression