Statistical analysis of ionospheric responses to solar flares in the solar cycle 23