Structure studies of carbon foils with the aim to improve the ability for heavy-ion stripping