Antibiotics in microbial communities: an ecological frame of resistance