A flexible semiparametric approach for robust causal inference with invalid instruments and unmeasured confounder | Synapse