Synthesis, optical properties, and photocatalytic activity of lanthanide-doped anatase