Computer modeling of small clusters in nickel-phosphorus systems