Finite element modeling of crack propagation in RC beam by using energy approach