Maximum energy storage of supercapacitor