Phase and glass transitions in (KI)1-x (NH4I) x