An ab initio cluster study of the structure of the Si(001) surface