Luminescent microporous metal-organic framework with functional lewis basic sites on the pore surface: specific sensing and removal of metal ions.