Hard carbon composites with metal oxides and metal nitrides for sodium-ion batteries