explain the role of leaves in photosynthesis