Comparison of simultaneous variations of the ionospheric total electron content and geomagnetic field associated with strong earthquakes