Thermal decomposition of surfactant coatings on Co and Ni nanocrystals