Factors affecting photosynthesis and cellular respiration