Denmark stopped all trains from Germany to curb the influx of migrants