Solvent effects on host-guest complexation