Experimental and theoretical studies of ferroelectric phase transitions in crystals Na(DxH1-x) (SeO3)2