Energy conversion in natural and artificial photosynthesis