Design of nanowire-induced nanocavities in grooved 1D and 2D SiN photonic crystals for the ultra-violet and visible ranges.