Nonradiative decay of excited molecules near a metal surface