Ionospheric effects of solar flares. III. The quantitative relationship of flare X-rays to SID's