Carbohydrate dehydration using porous catalysts