Inducing phase separation by thermal treatment