A Survey on Small-Scale Testbeds for Connected and Automated Vehicles and Robot Swarms