Lithography for robust and editable atomic-scale silicon devices and memories