Online charge calibration of LHAASO-WCDA——a study with the engineering array