Diversity of nitrogen-fixing cyanobacteria under various ecosystems of Thailand: population dynamics as affected by environmental factors