Structure and oxidation state relationships in ternary copper oxides