On one-dimensional discrete variable representations with general basis functions