Flattening of grooves on a crystal surface, a method of investigation of surface roughness