Variational Methods in Continuum Damage and Fracture Mechanics