Role of nanoparticle surface defects in the conduction mechanism of polymer–nanoparticle electrical bistable devices