Hyperfine structure in the barium resonance line: curves of growth for solar and r-process isotopic mixtures