Ionospheric effects of transient celestial X-ray and gamma-ray events