Ionospheres of the terrestrial planets