Tailored production and application of biochar for tar removal