Sample Margin-Aware Recalibration of Temperature Scaling