Selection of number of gaps in superimposed moiré measurements