Structure and magnetic properties of Fe(C) and Co(C) nanocapsules prepared by chemical vapor condensation