The magnetic properties of annealed graphite-coated Ni and Co nanocrystals