Ionic model for the stability of the Y-Ba-Cu high-temperature superconductors.