X-ray synchrotron emission from the oblique shock in the jet of the powerful radio galaxy 3C 346