Tomography of a spin qubit in a double quantum dot