A method and a device for assembly of a nanomaterial structure