Generalization of the method of slowly varying amplitude and phase to non-linear oscillatory systems with two degrees of freedom