Homoclinic and heteroclinic trajectories Nonlinear vibrations and oscillations mathematics