Fundamental studies of analyte/film interactions and their applications for chemical sensor devices