Nanodispersed cobalt particles in a thermolysed poly(acrylonitrile) matrix