Spanish authorities have dismantled a criminal network accused of illegally shipping hazardous waste to Ghana.