On the origin of oxygen isotope exchange induced ferroelectricity in strontium titanate