Order reduction of nonlinear quasi-periodic systems subjected to external excitations