Electric potential calculation in molecular simulation of electric double layer capacitors