Analysis of the origins and implications of the18O content of stratospheric water vapor