Estimation of spectral solar irradiance in the ecliptic plane using synthetic solar surface magnetograms