Electronic structures of boron nanoribbons