Effect of dielectric Bragg grating nanostructuring on dye sensitized solar cells