Topology Inference for Network Systems with Unknown Inputs