Resonances in coupled channels in nuclear and particle physics