Consistency Conditions for Differentiable Surrogate Losses