Systematic study of resonant transmission effects in visible band using variable depth gratings