Spectroscopic constants and potential energy curves of Bi2 and Bi−2