Study of electronic and lattice dynamical properties of antiperovskite-type nitrides XNNi3(X= Pd, Sn and Sb)