The distribution of the elastic strain-energy density at the crack tip for fracture modes I and II