Density-functional-theory calculations of electronic band structure of single-crystal and single-layer WS 2