Wave functions of composite hadron states and relationship to couplings of scattering amplitudes for general partial waves