Sudanese military leaders, opposition agree on power-sharing deal