Structure Determination of Mg2TiHn and Mg3TiHn (n=1-25) Clusters