Solar-Driven Humidification–Dehumidification Process for Water Desalination Analyzed and Optimized via Equilibrium Theory