First-principles study of the liquid and amorphous phases of In2Te3