The process of photosynthesis mainly requires