Protic ionic liquids and salts as versatile carbon precursors.