Variational methods for the steady state response of elastic-plastic solids subjected to cyclic loads