Structure-based modeling of energy transfer in photosynthesis