Pion- and photon-induced hadronic reactions in a combined coupled-channel analysis