Optimal compliance prediction models for estimating causal effects