Sudan’s opposition agree power-sharing deal with military