Nonlinear optical response of endohedral all-metal electride cages 2e-Mg2+(M@E12)2-Ca2+ (M = Ni, Pd, and Pt; E = Ge, Sn, and Pb)