Wales were knocked out of World Cup qualification after losing to Bosnia and Herzegovina on penalties