The spectrum of 2+1 dimensional Yang-Mills theory on a twisted spatial torus