A computer algorithm to determine the nadir and rise time in nocturnal cortisol secretion