Measurement-induced nonlocality in arbitrary dimensions in terms of the inverse approximate joint diagonalization