Pinning of Domain Wall in Composite Ferromagnetic Nanowire Consisting of Two Layers With Distinct Magnetic Anisotropy