LocMoE: A Low-overhead MoE for Large Language Model Training