Observation of the critical thickness phenomenon in dislocation dynamics simulation of microbeam bending