Electrosynthesised thin polymer films: the role of XPS in the design of application oriented innovative materials