Engineering hierarchical nanostructures by elastocapillary Self Assembly