Diurnal and seasonal variations of nitrogen fixation and photosynthesis in cyanobacterial mats