Approximate Bayesian computation with composite score functions