How does photosynthesis and cellular respiration affect the balance of oxygen and carbon dioxide in the atmosphere?