A far-right party is on track to win a regional election in Germany for the first time since the Second World War.