Sir James Nasmyth, 1st Baronet — Scottish lawyer