First-principle studies of the stability, electronic and elastic properties of trigonal-type M2N (M=Cr, V, Nb and Ta)