Court gives 8-year ban to Chinese swimmer Sun Yang for doping