Charge trapping models of resistance switching in organic bistable devices with embedded nanoparticles