Hydrogen-triggered metal filament rupture in Cu-based resistance switches first-principles simulation hydrogen embrittlement Resistance switch rupture of metal filament