Modified get_Th_inf so that the initial steps are smaller when an initial estimate is provided
changed get_Th_inf so that it can take mineralNumber as an input argument