Damage and healing mechanics in plane stress, plane strain, and isotropic elasticity