Functionalization of surface layer of nanoporous carbon fibers with bromine and amine functional groups