Nanoporous hard carbon anodes for improved electrochemical performance in sodium ion batteries