Analyzing modal shift based on critical travel time for different trip purposes in medium-sized city