Novel covalent-organometallic polymer for highly stable nano-resistive switching memories