Chemistry and Physics of Terrestrial Planets