The hydration and alteration of perlite and rhyolite