Optical defects in or on transparent materials