St. Jude to buy maker of chronic pain device