Belgium became the first team to secure a place at Euro 2020 with a 9-0 thrashing of San Marino.