A theoretical approach to pion nuclear reactions in the resonance region