Ligand sells Promacta assets and Royalty for $827m