Discrete dislocation plasticity analysis of cyclic loading phenomena