Spectroscopic study on imidazolium based ionic liquids: effect of alkyl chain length and anion