Optical methods for measuring the feature size of optical diffraction gratings with nano-meter accuracy and implementation of suitable feedback control loops