Multichannel-quantum-defect theory wave functions of Ba tested or improved by laser measurements