Design of Electrodeposited Bilayer Structures for Reliable Resistive Switching with Self-Compliance.