Protein control of photochemistry and transient intermediates in phytochromes