Alexander Maconochie, Lord Meadowbank — Advocate, judge, landowner and politician (1777-1861)