Mesoscopic simulation of self-assembly of linear and dendritic copolymer poly(styrene)-b-poly(ethyleneglycol) in polar and non-polar solvents