Quantum control theory for decoherence suppression in quantum gates