Pressure-induced development of bonding in NiAs type compounds and polymorphism of NiP