Method to measure muon content of extensive air showers with LHAASO KM2A-WCDA synergy