Measurement of the ratio of branching fractions B(B-+/- -> J/psi pi(+/-))/B(B-+/- -> J/psi K-+/-)