Denis Undav's brace has helped Germany extend their unbeaten record in the Nations League to three matches with a convincing 2-1 win at Bosnia-Herzegovina.