The Czech Republic qualified for the World Cup for the first time in 20 years by beating Denmark on penalties in the play-off final in Prague.