Thermodynamic stability of the ordered conformations of carrageenan polyelectrolytes