Shire to buy Jerini in $521M deal