A forgotten theorem, and its application to surface-wave excitation