The role of rare earth metals in lanthanide-incorporated mesoporous titania