Phase transformation and thermal expansion of MgNi alloys in a hydrogen atmosphere