How did the first photosynthetic organisms help turn Earth's early environment from anaerobic to aerobic​