Applicability of the free-atom approximation in interpreting the chemical shifts for x-ray emission lines