Physical properties and phase transitions in sodium tartrate dihydrate