Electromagnetic modeling of excited-state dynamics in the vicinity of metallic nanostructures