A chemical analysis of the role of molecular and conformational structure in the adaptation of microorganisms to extreme environments