Influence of surface segregation on the elastic property of Pt–Ni alloy nanowires