Retention-failure mechanism of TaN∕CuxO∕Cu resistive memory with good data retention capability