Homoclinic Trajectories in Discontinuous Systems