Distributed sensor network localization from local connectivity: performance analysis for the HOP-TERRAIN algorithm