RIS-Aided Localization Under Position and Orientation Offsets in the Near and Far Field | Synapse