Medal of Scot who fought at Waterloo sold at auction