Investigation of correlation between the microstructure and electrical properties of sol-gel derived ZnO based thin films