Microporous materials containing lanthanide metals