The enhancement of the lifetime of carbon stripper foils under heavy ion bombardment