Over-the-Air Inference over Multi-hop MIMO Networks