Automating approximate Bayesian computation by local linear regression