Effect of dopants on the structural, optical and electrical properties of sol–gel derived ZnO semiconductor thin films