HOMOCLINIC ORBITS AND THEIR BIFURCATIONS IN DYNAMICAL SYSTEMS WITH TWO DEGREES OF FREEDOM: A METHOD OF QUALITATIVE AND NUMERICAL ANALYSIS