Selective adsorption mechanisms of pharmaceuticals on benzene-1,4-dicarboxylic acid-based MOFs: Effects of a flexible framework, adsorptive interactions and the DFT study.