A QRS-complex detector of the electrocardiogram signal for the long-term monitoring of the patient’s condition