QED radiative corrections to lepton scattering in the structure function formalism