Beer–Lambert law in photochemistry: A new approach