Understanding the thermally induced phase separation process via a Maxwell–Stefan model