Relationships between community composition, productivity and invasion resistance in semi-natural bacterial microcosms