Ligand Pharmaceuticals buying Xoma Royalty for $739 million