High-pressure study of triphenylmethane dyes in polymeric and aqueous media