Electronic structure, lattice dynamics, and thermoelectric properties of bismuth nanowire from first-principles calculation