Variational properties of the discrete variable representation: discrete variable representation via effective operators.