Electronic structures and quantum capacitance of single-walled carbon nanotubes doped by 3d transition-metals: A first principles study