Relativistic N-particle energy shift in finite volume