The control by state transitions of the distribution of excitation energy in photosynthesis