Using the Gatekeeper Concept to Design and Assign Multiagent Teams