Text this: An exact implementation of the generalized Zhang-Zhu criterion for elasto-plastic finite element calculations