On Optimizing Shared-ride Mobility Services with Walking Legs