First-principles predictions of the geometries and electronic structures of tungsten ditelluride nanoribbons