Uber and DoorDash found a way to make food-delivery profitable