An ab initio study of the spectral properties of W II