Interpretation of unresolved transition arrays in the soft-x-ray spectra of highly ionized molybdenum and palladium