Coastal microbial mats: the physiology of a small-scale ecosystem