Text this: Coupled damage and plasticity models derived from energy and dissipation potentials