Generalized Exact Cosmologies with Interacting Yang-Mills and Nonlinear Scalar Fields