Generalized product formulas and quantum control