Optimizing the performance of supercapacitors based on carbon electrodes and protic ionic liquids as electrolytes