Charge trapping and defect segregation in quartz