Merck and other pharma giants are bracing for competition to their blockbuster drugs. Here's how