Studies on ZnO and Ni doped ZnO thin films coated on glass and porous semiconductor substrates in view of optoelectronic application