Light-induced excited spin state trapping: ab initio study of the physics at the molecular level.