Layer-structured NbSe2 anode material for sodium-ion and potassium-ion batteries