benabarre was set as the capital of ribagorza county