Localization and convergence of eigenfunction expansions