Fabrication and characterization of nanotextures for light management in photovoltaic and optoelectronic devices : dissertation