Utilizing compliance current level for controllability of resistive switching in nickel oxide thin films for resistive random-access memory