Unraveling the Stable Phase, High Absorption Coefficient, Optical and Mechanical Properties of Hybrid Perovskite CH3NH3PbxMg1–xI3: Density Functional Approach