On the minimization of strain energy in the martensitic transformation of titanium