A Variational Framework for Phase-Field Fracture Modeling with Applications to Fragmentation, Desiccation, Ductile Failure, and Spallation