Microbial adaptations to extreme environments