John Balfour, 3rd of Pilrig — (1740-1814)