LOS/NLOS Near-Field Localization with a Large Reconfigurable Intelligent Surface