Chemisorption of HCl, Cl2 and F2 on the Si(100) surface