Migrants pulled from train tracks by Hungarian police