Shear Induced Demixing in Polymer Melts and Solutions