Nitrides or carbides coated on hard carbon for sodium ion batteries