On vibrational lineshapes of adsorbed molecules