The political and social ideas of an enlightened Catholic: the Catalan Jesuit Juan Francisco Masdeu (1744-1817)