First-principles study of Ti doping in FeF3·0.33H2O