Local adaptive refinement and multilevel method for the fracture of heterogeneous materials