Synthesis, structure, and X-ray absorption spectra of LixNbO2 and NaxNbO2 (x ≤ 1)