The agencies method for coalition formation in experimental games