Sol–gel preparation and optical characterization of NiO and Ni1−xZnxO thin films