Anisotropic mesh adaptation for the generalized Ambrosio-Tortorelli functional with application to brittle fracture