All-carbon THz components based on laser-treated diamond