Robert Cunninghame Graham of Gartmore (d.1797), Poet and Politician