Representing environment-induced helix-coil transitions in a coarse grained peptide model