Measuring magnetic fields from water masers in the synchrotron protostellar jet in W3(H2O)