Deep-Hole Excitations in Solids. II. Plasmons and Surface Effects in X-Ray Photoemission