Influence of polymeric media on the association of aromatic hydrocarbons