Structural, optical, and photoluminescence properties of erbium doped TiO2 films