Collecting core samples of carbon