Excitation of isovector states by the (7Li,7Be) reaction on 12C and 13C