A model of hydrolytic weakening in quartz