Construction of exact solutions in two-field cosmological models