Light absorption in photochemistry