Sudan’s military, opposition reach power-sharing pact