Forward modeling of δ18O in Andean ice cores