Isotope effects in the crystal symmetry and nature of the phase transitions in NaH3(SeO3)2 and NaD3(SeO3)2