Initialization by measurement of a two-qubit superconducting circuit