Sudan’s Hamdok quits as premier after failing to restore civilian govt