Effects of phase separation on stress development in polymeric coatings