Use of ionic liquids in sol-gel; ionogels and applications