Effect of magnetic fields on pulse plating of cobalt films