Integrating people and freight transportation using shared autonomous vehicles with compartments