Configurational mechanics of photosensitive polymers in dilute solution: comparison between theory and experiment