what is the relationship between photosynthesis respiration and heat