Derivation of density and temperature from the Cassini–Huygens CAPS electron spectrometer