Studies on Pt-Ni alloys: Layer-by-layer calculations of the alloy compositions