Ionic liquids as tailored media for the synthesis and processing of energy conversion materials