Optical and diffractive studies of pyridinium-based ionic liquids