Surface Excitations in the Random-Phase Approximation. II. Retardation Effects