Endo to buy Par Pharma for about $8 billion