Eigenvalues with respect to a weight for discrete elliptic boundary value problems