FEM analysis of the cracking behavior of a beam subjected to bending