A receding-horizon planning approach for rail operations in seaport container terminals