Multi-mode bipolar resistance switching in CuxO films