Response of the topside and bottomside ionosphere at low and middle latitudes to the October 2003 superstorms