Optimized motion strategy for active target localization of mobile robots with time-varying connectivity