Lanthanide-Potassium Biphenyl-3,3'-disulfonyl-4,4'-dicarboxylate Frameworks: Gas Sorption, Proton Conductivity, and Luminescent Sensing of Metal Ions.