Sir Alexander Ogilvy, 1st Baronet — Scottish politician and judge