Electrodynamics at a metal surface. III. Reflectance and the photoelectron yield of a thin slab