First-principles study on the stability and work function of low-index surfaces of TiB2