Synthesis of Discrete-Time Regulators Based on the Trajectory Sensitivity Method