Theoretical and experimental study of the titanium substituted Mg2-xTixNi alloys and Mg2-xTixNiH4 hydrides