SMS dit: Ultrafast all-optical switching and laser action in rotaxane