Generalized Veneziano model for reactions with pion exchange