U.S. pastor at centre of diplomatic spat sentenced to time served in Turkey