Ionospheric response caused by solar flares