The electrical conductivity of inhomogeneous thin metallic films