Three-branes and five-branes in N=1 dual string pairs