Visco-energetic solutions to some rate-independent systems in damage, delamination, and plasticity