Resistive Switching in Aqueous Nanopores by Shock Electrodeposition