Semiparametric analysis of discrete response: Asymptotic properties of the maximum score estimator