Synthesis of optimal controls for amplitudeimpulse systems in the problem of minimizing the mean value of a functional of quadratic type