Sport Wales suffered a penalty shoot-out defeat to Bosnia and Herzegovina in Cardiff to end their 2026 World Cup dreams.