Electrical transport and magnetic properties of the triangular-lattice compound Zr2NiP