The diversity and functioning of coastal microbial communities