Electromagnetic Corrections to Hadronic Decays from Lattice QCD