Balancing the electrical double layer capacitance and pseudocapacitance of hetero-atom doped carbon.