Molecular orbital study of cobalt-oxygen interaction