The optical properties of thin cobalt films by a self-consistent photometric technique