Phase transitions and ferroelectricity in NaSb3F10