A variational theory for finite-step elasto-plastic problems