Neutral kaon regeneration on carbon in a momentum region of 16–40 GeV/c