Thermodynamic and rheological properties of rhyolite and andesite melts