Radiative and nonradiative decay rates of a molecule close to a metal particle of complex shape