Statistics for Quaternions and dual quaternions: singularity-free multirobot formation control