Germany secure ticket to Qatar World Cup