Density-functional calculation of the parameters in the Anderson model: Application to Mn in CdTe | Synapse