Mold machined in quartz glass