Dynamic molecular recognition in solid state for separating mixtures of isomeric dicarboxylic acids.