Text this: Self-rectifying memristors with high rectification ratio for attack-resilient autonomous driving systems