In what two major conflicts did Portugal engage in during the 20th century