Structure and stability of thin water films on quartz surfaces