A structural basis of light energy and electron transfer in biology