Internal Variable Formulations of Problems in Elastoplasticity: Constitutive and Algorithmic Aspects