Encapsulation of MoSe2 in carbon fibers as anodes for potassium ion batteries and nonaqueous battery-supercapacitor hybrid devices.