how does microbial resistance occur