Application of supercapacitor in microgrid