A model of the ionosphere of Titan