Tuning the magnetic properties of multilayered CoPt-Pt nanowires via thickness of magnetic segments