William Charles Gilmour, 10th of Liberton and Craigmillar — Scottish baronet and antiquarian (1742 - 1797)