Terrestrial planets are mainly composed of ________, while the giant planets are made predominantly of ________.