Water and the Interior Structure of Terrestrial Planets and Icy Bodies