Two young Tunisians have been sentenced to seven years in prison for posting cartoons of the prophet Mohammad on Facebook, in a case that has fueled allegations the country’s new Islamist leaders are gagging free speech.