Nicaragua sentences ex-presidential candidate to 8 years in prison amid wider opposition crackdown