Resistive memory devices based on complex oxides