Multicomponent adsorption in mesoporous flexible materials with flat-histogram Monte Carlo methods.