Quantum control robust with respect to coupling with an external environment