First-principles study on thermal vibration effects ofMgH2