Apex oxygen and effective pairing interaction among planar oxygen quasiparticles in copper oxide superconductors