Application of Gram-Schmidt decomposition for filtering of electron-beam-textured surfaces