Towards a self-consistent determination of the mixing parameters in the Anderson model: An application to the 4f-excitation spectra of YbP.