Beacon-based Distributed Structure Formation in Multi-agent Systems