Functionalization of Mesoporous Carbon Materials for Selective Separation of Lanthanides under Acidic Conditions.