Resistive switching characteristics of maghemite nanoparticle assembly on Al and Pt electrodes on a flexible substrate