Method for removing a high definition nanostructure, a partly freestanding layer, a sensor comprising said layer and a method using said sensor