On finite element implementation of cyclic elastoplasticity: theory, coding, and exemplary problems | Synapse