Investigations on zinc oxide magnesium oxide nanostructures and fabrication of titanium oxide dye sensitized solar cell