CO2 as a regulator for the controllable preparation of highly dispersed chitosan-supported Pd catalysts in ionic liquids.