Study of Fermi resonance by the method of solvent variation