Rational design of carbon materials as anodes for potassium-ion batteries