Robustness of controlled Hamiltonian approaches to unitary quantum gates