Kinetic and thermodynamic aspects of Mg and Mg-Ti hydride nanomaterials