Tailoring the oxidation state of cobalt through halide functionality in sol-gel silica