Effect of metal-ion doping on the optical properties of nanocrystalline ZnO thin films