Electroforming and switching in copper oxide films