Branching fraction measurement of B̅ 0→D(*)+π- and B-→D(*)0π- and isospin analysis of B̅ →D(*)π decays