A local viewpoint for evaluating the influence of stress triaxiality and lode angle on ductile damage and hardening