Technique of complex geometry modeling and grid generation for fully electromagnetic particle simulation