Origin of enhanced stability and oxygen adsorption capacity of medium-sized Pt-Ni nanoclusters