Thermalization of the intermediate nuclei in fusion and incomplete fusion reactions