General principles of microbial community structure