Optimization of a passenger railway transportation plan considering mobility flows and service quality