An approach for investigating eigenvector localization