Modulation structure stability of heat-treated Co/C and CoN/CN soft X-ray multilayers