Theoretical study of oxygen chemisorption on (111) and (100) silicon surfaces