Sudan's military rulers and opposition reach power-sharing deal