A discrete dislocation analysis of the Bauschinger effect in microcrystals