Deposition of thin cobalt films onto silicon by galvanostatic and potentiostatic techniques