A semiparametric method for predicting bankruptcy