Material-based three-dimensional imaging with nanostructured surfaces