Strategic planning of an automatic freight railway terminal