The former president of Ecuador, his wife and daughter, as well as his two brothers and sisters-in-law, have been sentenced to prison in a bribery scandal.