Tyrosine-mediated analog resistive switching for artificial neural networks