define photosynthesis and write its chemical equation