Turkey will overcome 'pains' after coup attempt: Gul