Origin and abundances of H2O in the terrestrial planets, Moon, and asteroids