Electronic, mechanical, and thermoelectric properties of Mg3Bi2-based materials by rare earth elements doping