On-line measurement of duration of cardiac action potentials and refractory periods.