how do plants perform photosynthesis to make energy available to all organisms?