Improving calibration by relating focal loss, temperature scaling, and properness