Two-particle multichannel systems in a finite volume with arbitrary spin