Microbial interactions in ecosystems