Energy analysis of multiple-cracked Euler-Bernoulli beam