Anti-electromagnetic interference electrocardiogram monitoring system