swap odd and even bits in an integer