How does photosynthesis benefit heterotrophs?