Nano-patterning of inorganic materials for photovoltaic applications