Determination of the effective nuclear charge for free ions of transition metals from experimental spectra