Electromagnetic effect in enhanced infrared absorption of adsorbed molecules on thin metal films