Prediction of the electronic structures, thermodynamic and mechanical properties in manganese doped magnesium-based alloys and their saturated hydrides based on density functional theory