Crystal chemistry and superconductivity of the copper oxides