Effect of pore structure and doping species on charge storage mechanisms in porous carbon-based supercapacitors