Role of molecular thermodynamical processes at functionalized polymer/metaloxide interfaces for photovoltaics