Multiscale modeling of polystyrene in various environments