Vibrational structure in core-level photoelectron spectra: Periodic trends.