Title: Theoretical analysis of soft-x-ray processes in transition and rare earth metals