Extraction of Lanthanide and Actinide Ions from Aqueous Mixtures Using a Carboxylic Acid-Functionalized Porous Aromatic Framework