plants can create energy through photosynthesis