Measurement-induced nonlocality based on affinity