Interplay between exchange interaction and magnetic field gradient in a double quantum dot with two individual electron spin qubits