Magnetic interactions in different oxidation states of thin cobalt films