Inorganic photovoltaics - Planar and nanostructured devices