Sir John Dalrymple, 4th Baronet — British judge, scientist and writer (1726–1810)