Optimal design of sub-wavelength dielectric gratings as broad band mirrors