Sol-gel synthesis and nanostructured semiconductor analysis of undoped and Cd-doped ZnO thin films