Magnetic-moment distribution and superlattice dislocations in the L12-type structure