A distributed adaptive architecture with the nonlinear reference model for safe finite-time control of uncertain multiagent systems