Vibrational energy transfer to metal surfaces probed by sum generation: CO/Cu(100) and CH3S/Ag(111)