General nondynamical formalism for reactions with particles of arbitrary spin: Rotation invariance