Measuring the complexity of micro and nanostructured surfaces