Localized resistive switching in a ZnS–Ag/ZnS double-layer memory