Radiative corrections to decay amplitudes in lattice QCD