a leaf is used for photosynthesis