Variational inequalities and multilevel optimization techniques in the theory of plasticity