Design and verification of adaptive control to generate flat-top radio frequency power output of pulse compressor for SXFEL