Characterization of functional films on solid substrates by TOF-SIMS