Unified Picture Of The Oxygen Isotope Effect In Cuprate Superconductors