D/H ratios and H2O contents record degassing and rehydration history of rhyolitic magma and pyroclasts