Vibrational heating in single-molecule switches: an energy-dependent density-of-states approach