Interaction of planar polymer Schottky barrier diodes with gaseous substances