Double-well potentials and structural phase transitions in polyphenyls