Consistent Binary Classification with Generalized Performance Metrics