Calibrating Classification Probabilities with Shape-Restricted Polynomial Regression