Boston Scientific to pay $336M to buy Fremont maker of a med