Density Functional Study of Magnetic Coupling Parameters. Reconciling Theory and Experiment for the TiF3 Complex