Functions of the Laplacian Matrix With Application to Distributed Formation Control