Evaluation of pulse-detection algorithms by computer simulation of hormone secretion.