Crystal structure and phase transitions of sodium potassium niobate perovskites