William Elphinstone Malcolm of Burnfoot (1817–1907), MA, DL, JP