The heart-rate monitor is a first for any Apple-designed earbuds and marks an expansion of the company’s health push.