Plasma temperature determination from the total intensity of a self-reversed spectral line