The vehicle routing problem with cross-docking and resource constraints