Response of microbial communities to changing environmental conditions: chemical and physiological approaches