Nucleation of a 60° glide dislocation in two-dimensional or three-dimensional growth of epilayers