Thermodynamics of water-permeated unwelded pyroclasts, 1: equilibrium properties