Surface study of metal-containing ionic liquids by means of photoemission and absorption spectroscopies