QED corrections to hadronic processes: a strategy for lattice QCD