DIIG: A Distributed Industrial IoT Gateway