Contribution of the topside and bottomside ionosphere to the total electron content during two strong geomagnetic storms