Optically driven intelligent computing with ZnO memristor