After the Franco-Spanish loss at Trafalgar, John VI resumed relations with what nation