Government, rebels agree to make Sudan 'secular state'