First-principle studies of properties of ternary layered M2PbC (M = Ti, Zr and Hf)