Theoretical modeling of thermoelectricity in Bi nanowires