The influence of light and dark adaptation on the effectiveness of masking gratings