Nonempirical cluster model study of the on-top chemisorption of fluorine and chlorine on C(111) surface