The influence of device structure on resistance switching in PbS QDs film inserted RRAM