Germany to take 40% stake in Leopard tank maker KNDS alongside France