Selective multi-hop relaying for ultra-reliable communication in a factory environment