A finite element approach to the simulation of hydraulic fractures with lag