How are photosynthesis and respiration related?