Gravar-mail: Algorithm for multi-curve-fitting with shared parameters and a possible application in evoked compound action potential measurements