Process- and optoelectronic-control of NiOx thin films deposited by reactive high power impulse magnetron sputtering