Trajectories connecting two submanifolds on non--complete Lorentzian manifolds