Interface engineering in inorganic-absorber nanostructured solar cells