Urey prize lecture: Planetary evolution and the origin of life