Measurement of the ratios of branching fractions B(B(s)(0)-> D(s)(-)pi(+))/B(B(0)-> D(-)pi(+)) and B(B(+)->(D)over-bar(0)pi(+))/B(B(0)-> D(-)pi(+))