Global bifurcation of homoclinic trajectories of discrete dynamical systems