Research on resistive switching mechanism of multi-filaments formation/rupture in nickel oxide thin films