A Tunisian court has sentenced ten environmental activists over a protest against pollution linked to a major phosphate-processing plant in the southern coastal city of Gabes.