Electrical and magnetic properties of nanostructured Ni doped CeO2 for optoelectronic applications