The dynamic range extension system for the LHAASO-WCDA experiment