Measurement of the pain threshold determined by electrical stimulation and its clinical application