Resistive Memory for Harsh Electronics: Immunity to Surface Effect and High Corrosion Resistance via Surface Modification