The collocation method for bound solutions of the Schrödinger equation