LENS: Localization enhanced by NeRF synthesis