Solvent effects on valence tautomerism: A comparison between the interconversion in solution and solid state