Modification and characterization of thin polymer films for electrochemical applications