Sudan: Military, armed groups agree to free detainees