Consistent derivation of the constitutive algorithm for plane stress isotropic plasticity - Part 1: Theoretical formulation