A variational fracture method based on Eshelby transformation