Calibration of Nebular Emission-Line Diagnostics. I. Stellar Effective Temperatures