The impact of interactions on invasion and colonization resistance in microbial communities