All-carbon detector with buried graphite pillars