Text this: First-principles calculations on structural, electronic and optical oroperties of Ce-, Nd- and Er-doped TiO2