Structure, phase transition and vibrational spectra of the NaH5(PO4)2 and NaD5(PO4)2 crystals