the train history in portugal