Discrete dislocation simulation of plastic deformation in metal thin films