Electron temperature measurement using the line-intensity ratio on the CTCC spheromak