Vertical partitioning and expression of primary metabolic genes in a thermophilic microbial mat