Carbon dioxide as a solvent for synthesis and processing