The Formation, Structure and Evolution of Terrestrial Planets