Thermal degradation studies of alkyl-imidazolium salts and their application in nanocomposites