Improved resistive switching characteristics in Ni/SiNx/p++-Si devices by tuning x