Mesoscopic study of the electronic properties of thin polymer films