Optimal control of a distributed service system with moving resources: Application to the fleet sizing and allocation problem