I was kindly granted permission by the Revista de Matemática Universitária to post here the publisher's final version of the article.