Study of excitation transfer in dye mixtures by measurements of gain spectra