Automated inclusion of QED corrections in Monte Carlo event generators