Photoelectrical reading in ZnO/Si NCs/p-Si resistive switching devices