Atomic localization in the presence of optical feedback