A Green's function for the excitation of torsional oscillations in the Earth's core