Differentiate the pseudocapacitance and double-layer capacitance contributions for nitrogen-doped reduced graphene oxide in acidic and alkaline electrolytes