Effective Hamiltonian for two interacting double-dot exchange-only qubits and their controlled-NOT operations