Empirical models of solar flare X ray and EUV emission for use in studying their E and F region effects