Isotopic composition and origin of polar precipitation in present and glacial climate simulations