Real-time estimation of perceptual thresholds based on the electroencephalogram using a deep neural network