Structure, polymorphism and luminescence of cyanate iodides MI(OCN) (M = Ba, Eu, and Sr).