Tailoring the linear and nonlinear optical properties of NiO thin films through Cr3+ doping