Measurement of the entanglement of two superconducting qubits via state tomography