Effect of the polytwinned microstructure parameters on magnetic domain structure and hysteresis properties of the CoPt-type alloys