Thermodynamic solutions for equilibrium beach profiles